package com.tbit.uqbike.client.constant.enums;

/**
 * @author chenmengran
 * @Description: 微信支付类型
 * @date 2019\7\17 001717:45
 */
public enum WeixinPayType {
    WEISIM_MEMBER_PAY("11", "微信支付会员费用"),
    WEISIM_MEMBER_AMOUNT("22", "微信支付会员费用,余额支付"),
    ;
    //类型
    private String code;
    //描述
    private String desc;

    private WeixinPayType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    /**
     * 参数验证
     *
     * @param code
     * @return
     */
    public static Boolean Check(String code) {
        Boolean has_task = false;
        for (WeixinPayType st : WeixinPayType.values()) {
            if (st.getCode().equals(code)) {
                has_task = true;
                break;
            }
        }
        return has_task;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
